/*----------------------------------------------------------------------------------------
*
*  Copyright 2019, Gao Hai Hui, <fromzeropoint@126.com>.  All rights reserved.
*  https://gitee.com/helloworldghh/xoskit.git
*  Use of this source code is governed by a MIT license
*  that can be found in the License file.
*
----------------------------------------------------------------------------------------*/
#include "../import/head.h"
#include "../data_struct/head.h"
#include "../macro/head.h"
#include "../impl/head.h"
#include "../msg/head.h"
#include "helper_objs.h"
#include "head.h"

namespace xos_net
{

    //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    // 

    helper_objs::helper_objs()
    {
    }

    helper_objs::~helper_objs()
    {
    }

    //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    // static

    int helper_objs::init()
    {
        int ret = 0;

        if( 0 == ret )
        {
            ret = helper_callback::init();
        }

        if( 0 == ret )
        {
            ret = helper_main::init();
        }

        if( 0 == ret )
        {
            ret = helper_net::init();
        }

        return ret;
    }

    int helper_objs::term()
    {
        int ret = 0;

        helper_net::term();
        helper_main::term();
        helper_callback::term();

        return ret;
    }

} // xos_net
